package aau.client.ui;

import aau.client.geo.Point;

import com.google.gwt.canvas.dom.client.Context2d;

public class Circle extends Shape {
    private double radius = 10.0d;

    public double getRadius() {
        return this.radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    @Override
    public void paint(Context2d c) {
        Point l = getLocation();
        c.beginPath();
        c.arc(l.x, l.y, this.radius, 0, Math.PI * 2d);
        c.closePath();
        c.setFillStyle("red");
        c.fill();
    }

}
